import App from "./App";
import { createSSRApp } from "vue";
import uView from "@/uni_modules/uview-next";
import { myRequest } from "@/utils/require.js";
import shareMixin from "./utils/share";
export function createApp() {
  const app = createSSRApp(App);
  app.config.globalProperties.$http = myRequest;
  // Vue 3 使用 app.use() 安装插件
  app.use(uView);
  app.mixin(shareMixin);
  return {
    app,
  };
}
